<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Cadastro de Cargo</title>
	<h:outputStylesheet name="style.css" library="css"></h:outputStylesheet>
</h:head>
<h:body>
	<h:form id="Cargo">
		<h:messages errorClass="mensagemErro" infoClass="mensagemInfo"
			warnClass="mensagemErro" globalOnly="true"></h:messages>
		<fieldset class="formulario">
			<legend class="tituloFormulario">Manter Dados Cargo</legend>
			<h:panelGrid columns="2">			
			Nome: 
				<h:panelGroup>
					<h:inputText size="30" value="#{cargoBean.cargo.nome}" id="nome"
						required="true" requiredMessage="Preencha o nome"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="nome" errorClass="mensagemErro"></h:message>
				</h:panelGroup>
				<f:facet name="footer">
					<h:panelGroup style="text-align:right" layout="block">
						<h:commandButton value="Adicionar" style="text-align:right"
							actionListener="#{cargoBean.InserirCargo}"></h:commandButton>
					</h:panelGroup>
				</f:facet>
			</h:panelGrid>
			<br/>			
		</fieldset>
	</h:form>
</h:body>
</html>